// ============================== 用户结构体 ============================== //

export class UserDto {
  constructor() {
    this.obj = {
      id: '',
      tenantNo: 0,

      // 基本信息
      name: '',
      phone: '',
      idType: 0,
      idNo: '',
      birth: '',
      gender: 0,
      age: 0,
      eduList: [],
      province: '',
      city: '',
      area: '',
      addr: '',

      // 账号信息
      photo: '',
      account: '',
      password: '',
      status: 0,
      activeTime: 0,
      expireTime: 0,
      roleId: '',
      roleName: '',
      rolesIdList: [],
      rolesNameList: [],

      // 工作信息
      organIdsList: [],
      organId: '',
      organName: '',
      organsIdList: [],
      organsNameList: [],
      beginDate: 0,
      endDate: 0,
      salary: 0,
      link: '',
      email: '',
      vehicle: '',
      selfSign: '',

      // 收藏信息
      fileList: [],
      imageList: [],
      audioList: [],
      videoList: [],

      createTime: 0,
      updateTime: 0,
    }
  }

  toObject() {
    return this.obj
  }

  setId(id) {
    this.obj.id = id
  }

  setTenantNo(tenantNo) {
    this.obj.tenantNo = tenantNo
  }

  setCreateTime(createTime) {
    this.obj.createTime = createTime
  }

  setUpdateTime(updateTime) {
    this.obj.updateTime = updateTime
  }

  // —————————————————————————————— 基本信息 —————————————————————————————— //

  setName(name) {
    this.obj.name = name
  }

  setPhone(phone) {
    this.obj.phone = phone
  }

  setIdType(idType) {
    this.obj.idType = idType
  }

  setIdNo(idNo) {
    this.obj.idNo = idNo
  }

  setBirth(birth) {
    this.obj.birth = birth
  }

  setGender(gender) {
    this.obj.gender = gender
  }

  setAge(age) {
    this.obj.age = age
  }

  setEduList(eduList) {
    this.obj.eduList = eduList
  }

  setProvince(province) {
    this.obj.province = province
  }

  setCity(city) {
    this.obj.city = city
  }

  setArea(area) {
    this.obj.area = area
  }

  setAddr(addr) {
    this.obj.addr = addr
  }

  // —————————————————————————————— 账号信息 —————————————————————————————— //

  setPhoto(photo) {
    this.obj.photo = photo
  }

  setAccount(account) {
    this.obj.account = account
  }

  setPassword(password) {
    this.obj.password = password
  }

  setStatus(status) {
    this.obj.status = status
  }

  setActiveTime(activeTime) {
    this.obj.activeTime = activeTime
  }

  setExpireTime(expireTime) {
    this.obj.expireTime = expireTime
  }

  setRoleId(roleId) {
    this.obj.roleId = roleId
  }

  setRoleName(roleName) {
    this.obj.roleName = roleName
  }

  setRolesIdList(rolesIdList) {
    this.obj.rolesIdList = rolesIdList
  }

  setRolesNameList(rolesNameList) {
    this.obj.rolesNameList = rolesNameList
  }

  // —————————————————————————————— 工作信息 —————————————————————————————— //

  setOrganIdsList(organIdsList) {
    this.obj.organIdsList = organIdsList
  }

  setOrganId(organId) {
    this.obj.organId = organId
  }

  setOrganName(organName) {
    this.obj.organName = organName
  }

  setOrgansIdList(organsIdList) {
    this.obj.organsIdList = organsIdList
  }

  setOrgansNameList(organsNameList) {
    this.obj.organsNameList = organsNameList
  }

  setBeginDate(beginDate) {
    this.obj.beginDate = beginDate
  }

  setEndDate(endDate) {
    this.obj.endDate = endDate
  }

  setSalary(salary) {
    this.obj.salary = salary
  }

  setLink(link) {
    this.obj.link = link
  }

  setEmail(email) {
    this.obj.email = email
  }

  setVehicle(vehicle) {
    this.obj.vehicle = vehicle
  }

  setSelfSign(selfSign) {
    this.obj.selfSign = selfSign
  }

  // —————————————————————————————— 收藏信息 —————————————————————————————— //

  setFileList(fileList) {
    this.obj.fileList = fileList
  }

  setImageList(imageList) {
    this.obj.imageList = imageList
  }

  setAudioList(audioList) {
    this.obj.audioList = audioList
  }

  setVideoList(videoList) {
    this.obj.videoList = videoList
  }
}
